From 38e437ba80ee8137be670cce8b541def77a98a17 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 10 Jan 2008 04:07:46 +0000 Subject: [PATCH] Chong Yidong (wait_reading_process_output): Check for window changes caused by timers. --- src/process.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/process.c b/src/process.c index bf974352a29..f7abc7993d3 100644 --- a/src/process.c +++ b/src/process.c @@ -4697,6 +4697,7 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display, { int old_timers_run = timers_run; struct buffer *old_buffer = current_buffer; + Lisp_Object old_window = selected_window; int leave = 0; if (detect_input_pending_run_timers (do_display)) @@ -4710,7 +4711,8 @@ wait_reading_process_output (time_limit, microsecs, read_kbd, do_display, an alike. Make read_key_sequence aware of that. */ if (timers_run != old_timers_run && waiting_for_user_input_p == -1 - && old_buffer != current_buffer) + && (old_buffer != current_buffer + || !EQ (old_window, selected_window))) record_asynch_buffer_change (); if (leave) -- 2.30.2